
import use_case.processRental.Items;
import junit.framework.TestCase;


public class ItemsTest extends TestCase {
	private Items item;

	   public ItemsTest(String name) {
	      super(name);
	   }
	   protected void setUp(String s, double d){
		   item = new Items(s,d);
	   }
	   
	   protected void tearDown(){
		   item = null;
	   }
	   
	   public void testGetName() { 
		   setUp("Tom", 16.5);
		   assertEquals("Tom", item.getName());
		   tearDown();
	   }
	   
	   public void testGetCost() { 
		   setUp("Tom", 16.5);
		   assertEquals(16.5, item.getCost());
		   tearDown();
	   }
}
